package cn.iocoder.yudao.module.yyzx.controller.admin.outings.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 外出管理新增/修改 Request VO")
@Data
public class OutingsSaveReqVO {

    @Schema(description = "外出id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27430")
    private Integer id;

    @Schema(description = "老登id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11109")
    @NotNull(message = "老登id不能为空")
    private Integer eldenId;

    @Schema(description = "老登姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "老登姓名不能为空")
    private String name;

    @Schema(description = "外出类型id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "外出类型id不能为空")
    private Integer outingTypeId;

    @Schema(description = "外出时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "外出时间不能为空")
    private LocalDateTime outingTime;

    @Schema(description = "返回时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "返回时间不能为空")
    private LocalDateTime returnTime;

    @Schema(description = "外出地点", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "外出地点不能为空")
    private String location;

    @Schema(description = "外出原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "不好")
    @NotEmpty(message = "外出原因不能为空")
    private String reason;

}